#ifndef SERIAL_PORT_H
#define SERIAL_PORT_H

#include <Windows.h>
class SerialPort
{
private:
	HANDLE hSerial;
public:
	SerialPort(void);
	~SerialPort(void);
	int connect ();
	int connect (wchar_t *device);
	//int connect (char *deviceName, int baudRate, SerialParity parity);
	void disconnect(void);

	int sendArray(char buffer[], int len);
	int getArray (char buffer[], int len);

	void clear();
};

#endif

